package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.BizDemoMapper;
import com.ruoyi.business.domain.BizDemo;
import com.ruoyi.business.service.IBizDemoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 示例实体Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-09
 */
@Service
public class BizDemoServiceImpl extends ServiceImpl<BizDemoMapper, BizDemo> implements IBizDemoService
{
    @Autowired
    private BizDemoMapper bizDemoMapper;

    /**
     * 查询示例实体
     * 
     * @param id 示例实体主键
     * @return 示例实体
     */
    @Override
    public BizDemo selectBizDemoById(Long id)
    {
        return bizDemoMapper.selectBizDemoById(id);
    }

    /**
     * 查询单条示例实体
     *
     * @param bizDemo 示例实体
     * @return 示例实体对象
     */
    @Override
    public BizDemo selectBizDemoOne(BizDemo bizDemo)
    {
        return bizDemoMapper.selectBizDemoOne(bizDemo);
    }

    /**
     * 查询示例实体列表
     * 
     * @param bizDemo 示例实体
     * @return 示例实体集合
     */
    @Override
    public List<BizDemo> selectBizDemoList(BizDemo bizDemo)
    {
        return bizDemoMapper.selectBizDemoList(bizDemo);
    }

    /**
     * 根据 ID 批量查询示例实体
     *
     * @param ids ID 集合
     * @return 示例实体集合
     */
    @Override
    public List<BizDemo> selectBizDemoByIds(List<Long> ids)
    {
        return bizDemoMapper.selectBizDemoByIds(ids);
    }
}
